Repository navigation
Conversation
The bridge-side cap is already exercised behaviourally by test_process_request_rejects_oversize_body_before_running_app. The only contract unique to the source-text test was that main.py hands the cap to the bridge; the grep passed as long as any one of the three asgi.fetch call sites still had it. Drive all three (cached GET miss, uncacheable GET, POST) through Default.fetch and assert each passes max_body_bytes=100_000, the limit the user-facing "over 100 kB" message promises. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019boFsNWgtPe2zZQxPFRRWp
…y bridge.fetch Review follow-ups: compare against MAX_SUBMITTED_BODY_BYTES rather than a literal (the contract is that the two caps agree), check the call count per subtest so a skipped call site cannot reuse the previous call's kwargs, and cover worker_asgi_bridge.fetch forwarding max_body_bytes to process_request, which no test (old or new) exercised. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019boFsNWgtPe2zZQxPFRRWp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012eisRQmQvg4TphwztxhQGJ
Clean merge: #19 touched figures, theme tokens and figure-content checks; this branch only touches the request-body-cap tests. Generated files were rebuilt with make build and check-social-cards; nothing drifted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012eisRQmQvg4TphwztxhQGJ
adewale
marked this pull request as ready for review
November 7, 2026 00:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace source-string checks for request-size limits with executed bridge and Worker requests, covering declared and streamed oversize bodies, exact boundaries and accepted requests. Remove the Turnstile keyword checklist in favor of the existing executed clearance, bypass, session, verification-failure and cookie contracts; retain actual CSP assertions.
Updated with current main's dependency and action-pin changes. Validation: 234 Python tests and Ruff pass locally. Hosted Verify covers the deployed Worker/browser boundaries.